{% if attribute(yearMonthList, 0) %}
<aside class="widget widget_archive">
    <h2 class="widget-title">文章归档</h2>
    <ul>
    {% for yearMonth in yearMonthList %}
    <li><a href="{{ yearMonth.url }}">{{ yearMonth.name }}</a></li>
    {% endfor %}
    </ul>
</aside>
{% endif %}